<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/18 0018
 * Time: 16:19
 */

/**
 * 读取文件
 */
$result = swoole_async_readfile(__DIR__.'/1.txt', function($filename, $fileContent){
    echo "filename:{$filename}" . PHP_EOL;
    echo "content:{$fileContent}" . PHP_EOL;
});
var_dump($result);
echo "start" . PHP_EOL;







